package com.app.model.solr;

import org.apache.solr.client.solrj.beans.Field;

/**
 * Created by Lichaojie on 2017/3/18. It's a beautiful day.
 */
public class ArticleItem {

    @Field(value = "id")
    private long id;//articleId

    @Field(value = "userId")
    private long userId;

    @Field(value = "title")
    private String title;

    @Field(value = "content")
    private String content;

    @Field(value = "label")
    private String label;

    @Field(value = "type")
    private int type;

    public long getId() {
        return id;
    }

    public ArticleItem setId(long id) {
        this.id = id;
        return this;
    }

    public long getUserId() {
        return userId;
    }

    public ArticleItem setUserId(long userId) {
        this.userId = userId;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public ArticleItem setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getContent() {
        return content;
    }

    public ArticleItem setContent(String content) {
        this.content = content;
        return this;
    }

    public String getLabel() {
        return label;
    }

    public ArticleItem setLabel(String label) {
        this.label = label;
        return this;
    }

    public int getType() {
        return type;
    }

    public ArticleItem setType(int type) {
        this.type = type;
        return this;
    }
}
